package com.woniu.new_orange.mapper;

import com.woniu.new_orange.entity.User;
import com.woniu.new_orange.personnel_model_wu.Dto.UserDto;

/**
* @author 13488
* @description 针对表【user(用户;学院表)】的数据库操作Mapper
* @createDate 2023-01-17 20:13:29
* @Entity com.woniu.new_orange.entity.User
*/
public interface UserMapper {
    //  董航  2023/2/3 14:49  账号登录
    User userLogin(UserDto userDto);

    //  董航  2023/2/3 14:49  邮箱登录
    User loginByEmail(UserDto userDto);

    //  董航  2023/2/3 14:49  手机登录
    User loginByPhone(UserDto userDto);

    //  董航  2023/2/6 15:55  通过手机获得user对象
    User loginBySms(String userPhone);

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);



}
